<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <!--    引入格式文件-->
{#    <link rel="stylesheet" href="html&css.css">#}
</head>
<body>

<style>
    *{
        margin: 0px;/*所有的外边距为0*/
        padding: 0px;/*所有的内边距为0*/
        box-sizing: border-box;/*规定两个并排的带边框的框*/
    }
    body{
        {#background: url("https://bpic.588ku.com/back_our/20201217/bg/89f905f39bc07.png")no-repeat center;#}
        background-image: linear-gradient(to right, #7c8ca8, #7e7d7e);
        padding-top: 150px;
    }
    .rg_layout{

            border-radius: 15px;
            padding: 0 50px;
            position: relative;
            left: 20%;
            top: 50%;
            transform: translate(-55%, 10%);

        width: 550px;
        height: 340px;
        border: 3px solid #f5f3f3;/*solid 定义实线*/
        background-color: white;
        margin: auto;
    }
    .rg_left{
        float: left;
        margin: 25px;
    }
    .rg_left>p:first-child{
        color: #1f0202;
        font-size: 30px;
    }
    .rg_left>p:last-child{
        color: #2f0303;
        font-size: 30px;
    }

    .rg_center{
        float: left;
    }

    .rg_right{
        float: right;
        margin: 15px;
        padding-left: 50px;
    }
    .rg_right p{
        font-size: 15px;
    }
    .rg_right p a{
        color: #dac0d1;
    }
    .td_left{
        width: 80px;
        text-align: right;
        height: 70px;
    }
    .td_right{
        padding-left: 50px;
    }
    #username,#password{
        width: 251px;
        height: 31px;
        border: 1px solid #A6A6A6;
        /*设置边框圆角*/
        border-radius: 5px;
        padding-left: 10px;
    }
    {##password{#}
    {#    width: 251px;#}
    {#    height: 30px;#}
    {#    border: 1px solid #A6A6A6;#}
    {#    /*设置边框圆角*/#}
    {#    border-radius: 5px;#}
    {#    padding-left: 10px;#}
    {#}#}
    #checkcode{
        width: 110px;
    }
    #img_check{
        height: 32px;
        vertical-align: middle;/*设置图片的位置垂直居中*/
    }
    #btn_sub{
        width: 100px;
        height: 40px;
        background-color: #5c5888;
        border: Black;
        padding-left: 10px;
        color: #fff;
    }
    .login-wrapper {
            background-color: #fff;
            width: 358px;
            height: 588px;
            border-radius: 15px;
            padding: 0 50px;
            position: relative;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    .header {
            font-size: 38px;
            font-weight: bold;
            text-align: center;
            /*line-height: 200px;*/
        }

</style>
<div class="rg_layout">
    <div class="rg_left">
        <p class="header">REGISTER</p>

    </div>
    <div class="rg_center">
        <div class="rg_form">
            <form action=" " method="POST">
                <table>
                    <tr><!--label 标签的作用是当点击文字也会跳到文本输出框-->
                        <!--for属性与ID属性对应规定 label 绑定到哪个表单元素。-->
                        <td class="td_left"><label for="username">账号</label> </td>
                        <td class="td_right"><input type="text" name="id" id="username"> </td>
                    </tr>
                    <tr>
                        <td class="td_left"><label for="password">密码</label> </td>
                        <td class="td_right"><input type="password" name="password" id="password"> </td>
                    </tr>
                    <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
                     <tr></tr>
                     <tr></tr>
                     <tr></tr>
                     <tr></tr>
                     <tr></tr>
                     <tr></tr>
                    <tr>
                        <td colspan="2" align="center">
                            <input type="submit" value="注   册  " id="btn_sub">
                        </td>
                    </tr>

                </table>
            </form>
        </div>
    </div>
    <div class="rg_right">
        <p>已有账号？<a href={% url "login_url" %}>立即登录</a></p>
<!--            <a href="login_page.html" >立即登录</a>-->
        </p>
    </div>
</div>
<script>
    var isreg="{{ isregisters }}";
    if(isreg!=''){
        alert(isreg);
    }
</script>
</body>
</html>
